package com.ny.dao;

import com.ny.entity.Product;

import java.sql.SQLException;
import java.util.List;

public interface ProductDao {
    public List<Product> findAllProduct() throws SQLException;
    //添加商品
    public int addProduct(Product product) throws SQLException;
    //删除商品
    public int deleteProduct(int productId) throws SQLException;
    //修改商品
    public int updateProduct(Product product) throws SQLException;
}
